package com.sys.data;

import java.util.*;

public class sqlMap implements Map<Integer, sqlStruct> {
    private Map<Integer, sqlStruct> mMap;

    public sqlMap() {
        mMap = new HashMap<>();
    }

    public void put(int id, Object value, int type) {
        sqlStruct struct = new sqlStruct(value, type);
        mMap.put(id, struct);
    }

    @Override
    public int size() {
        return mMap.size();
    }

    @Override
    public boolean isEmpty() {
        return mMap.isEmpty();
    }

    @Override
    public boolean containsKey(Object key) {
        return mMap.containsKey(key);
    }

    @Override
    public boolean containsValue(Object value) {
        return mMap.containsValue(value);
    }

    @Override
    public sqlStruct get(Object key) {
        return mMap.get(key);
    }

    @Override
    public sqlStruct put(Integer key, sqlStruct value) {
        return mMap.put(key, value);
    }

    @Override
    public sqlStruct remove(Object key) {
        return mMap.remove(key);
    }

    @Override
    public void putAll(Map<? extends Integer, ? extends sqlStruct> m) {
        mMap.putAll(m);
    }

    @Override
    public void clear() {
        mMap.clear();
    }

    @Override
    public Set<Integer> keySet() {
        return mMap.keySet();
    }

    @Override
    public Collection<sqlStruct> values() {
        return mMap.values();
    }

    @Override
    public Set<Entry<Integer, sqlStruct>> entrySet() {
        return mMap.entrySet();
    }
}
